package com.jbp.model;

import java.util.Date;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 暴击池(PoolCrit)实体
 * @author cc
 * @since 2021-03-21 10:21:02
 */
@ApiModel(value="PoolCrit")
@Data
public class PoolCrit implements Serializable {
    private static final long serialVersionUID = 1L;
        
    
    private Integer id;

    //用户id
    @ApiModelProperty(value="用户id")    
    
    private Integer userId;

    private Integer step;
    private Integer reward;


    //抽奖类型 'twenty 20钻抽  hundred100钻抽 
    @ApiModelProperty(value="抽奖类型 'twenty 20钻抽  hundred100钻抽 ")    
    
    private String poolType;

    //礼物编号
    @ApiModelProperty(value="礼物编号")    
    
    private Integer giftId;

    //normal待用  del已用
    @ApiModelProperty(value="normal待用  del已用")    
    
    private String status;

    //操作者
    @ApiModelProperty(value="操作者")    
    
    private Integer sysUsrId;

    //创建时间
    @ApiModelProperty(value="创建时间")    
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")    
    private Date createTime;

        
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")    
    private Date updateTime;

    public int getReward() {
        switch (giftId) {
            case 1001:
                return 50000;
            case 1002:
                return 80000;
            case 1003:
                return 120000;
            case 1004:
                return 160000;
            default:
                return 0;
        }
    }
}